package org.puppet.game.manager;

import java.util.HashMap;
import java.util.Map;

import org.puppet.game.Manager;
import org.puppet.game.World;
import org.puppet.game.view.SceneView;

public class SceneManager extends AbstractManager implements Manager {

	private Map<String, SceneView> scenes;
    
	public boolean init() {
		scenes = new HashMap<String, SceneView>();
		return true;
	}

	public void start() {
		if(scenes.containsKey("main")){
			World.current.setCurrentView(scenes.get("main"));
		}
	}
	
	public void addSceneView(String key, SceneView view){
		scenes.put(key, view);
	}	
}
